package IO;

import java.io.FileOutputStream;
import java.io.IOException;

public class FileOutputStreamDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("day01\\fos.txt");

        for(int i = 0;i<10;i++){
            fos.write("hello".getBytes());
            fos.write(" ".getBytes());
        }
        fos.close();
    }
}
